package com.indusfo.spc.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.indusfo.spc.common.pojo.BasePojo;

import java.util.Date;

public class ScrapWork extends BasePojo {
    // 设备报废作业ID
    private Integer scrapWorkId;
    // 报废作业单号
    private String scrapWorkNo;
    // 设备ID
    private Integer deviceId;
    // 制单人ID
    private Integer userId;
    // 报废原因
    private String scrapCause;
    // 审核状态ID ( 1未审核  2已审核)
    private Integer auditState;
    // 审核人ID
    private Integer auditUserId;
    // 审核时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date auditDate;
    // 创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    // 修改时间
    private Date modifyDate;
    // 备注
    private String remark;
    // 数据状态
    private Integer dataState;



    // 审核状态(翻译)
    private String auditStateName;
    // 设备名称
    private String deviceName;
    // 设备编号
    private String deviceCode;
    // 制单人名称
    private String userName;
    // 审核人名称
    private String auditUserName;

    public String getAuditStateName() {
        return auditStateName;
    }

    public void setAuditStateName(String auditStateName) {
        this.auditStateName = auditStateName;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getAuditUserName() {
        return auditUserName;
    }

    public void setAuditUserName(String auditUserName) {
        this.auditUserName = auditUserName;
    }

    public Integer getScrapWorkId() {
        return scrapWorkId;
    }

    public void setScrapWorkId(Integer scrapWorkId) {
        this.scrapWorkId = scrapWorkId;
    }

    public String getScrapWorkNo() {
        return scrapWorkNo;
    }

    public void setScrapWorkNo(String scrapWorkNo) {
        this.scrapWorkNo = scrapWorkNo == null ? null : scrapWorkNo.trim().replace(" ","");
    }

    public Integer getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getScrapCause() {
        return scrapCause;
    }

    public void setScrapCause(String scrapCause) {
        this.scrapCause = scrapCause == null ? null : scrapCause.trim().replace(" ","");
    }

    public Integer getAuditState() {
        return auditState;
    }

    public void setAuditState(Integer auditState) {
        this.auditState = auditState;
    }

    public Integer getAuditUserId() {
        return auditUserId;
    }

    public void setAuditUserId(Integer auditUserId) {
        this.auditUserId = auditUserId;
    }

    public Date getAuditDate() {
        return auditDate;
    }

    public void setAuditDate(Date auditDate) {
        this.auditDate = auditDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim().replace(" ","");
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }
}